import base from '@/api/baseurl';
import request from '@/utils/request'


/**
 * dept 下拉-层级
 * @param {*} query
 * @returns  dept_code
 */
export function finddeptlist(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/mlftpCost/finddeptlist',
    method: 'get',
    params: query
  })
}


/**
 * findcompanylist 下拉
 * @param {*} query
 * @returns  cp_code
 */
export function findcompanylist(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/mlftpCost/findcompanylist',
    method: 'get',
    params: query
  })
}


/* 表头 */
export function findHeader(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/mlftpCost/ml_ftpcostheader',
    method: 'get',
    params: query
  })
}

/**
 * 数据
 * @param {*} query  dept_code cp_code s_date e_date
 * @returns
 */
export function findlistData(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/mlftpCost/ml_ftpcostlist',
    method: 'get',
    params: query
  })
}
